﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" Theme="SkinFile"
    AutoEventWireup="true" CodeFile="SEC01_1S.aspx.cs" Inherits="IFRS_SEC01_1S" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <fieldset class="fsStandard" style="padding-bottom: 5px;">
                <legend>
                    <asp:Label ID="lblTopTitle" SkinID="CaptionBold" runat="server" Text="<%$Resources:ifrsMenu,ConditionSearch%>" />
                </legend>
                <div align="center" class="table_detail">
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblROLE_GROUP_NAME" runat="server" Text="<%$Resources:ifrsField,ROLE_GROUP_NAME%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtROLE_GROUP_NAME" SkinID="TextBoxWithNoColor" runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblSTATUS" runat="server" Text="<%$Resources:ifrsField,STATUS%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:DropDownList ID="ddlSTATUS" runat="server" SkinID="SS_DropDownListWithNoColor" />
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                        </div>
                        <div class="colinfo_single">
                        </div>
                    </div>
                </div>
                <div class="colbtn">
                    <div>
                        <div>
                            <asp:Button ID="btnSEARCH" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,SEARCH%>"
                                OnClick="btnSEARCH_Click" />&nbsp;
                            <asp:Button ID="btnCLEAR" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CLEAR%>"
                                OnClick="btnCLEAR_Click" />
                            &nbsp;
                            <asp:Button ID="btnCANCEL" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CANCEL%>"
                                OnClick="btnCANCEL_Click" />
                            &nbsp;
                        </div>
                    </div>
                </div>
            </fieldset>
            <div>
                <div class="colbtnAdd">
                    <p>
                        <asp:Button ID="btnAdd" runat="server" SkinID="NormalButton" Text="<%$Resources:ifrsButton,ADD%>"
                            OnClick="btnAdd_Click" />
                    </p>
                    <br />
                     <div class="content_grid">
                    <asp:GridView ID="gvSearch" runat="server"  AllowSorting="true" CssClass="CSSTableGenerator" AutoGenerateColumns="false"
                        AllowPaging="true" PageSize="10" OnRowDataBound="gvSearch_RowDataBound"  onsorting="gvSearch_Sorting">
                        <Columns>
                            <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                                <HeaderTemplate>
                                    <asp:Label ID="lblgvSEQ" runat="server" Text="<%$Resources:ifrsField,CENTER_SEQ%>" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <%#Container.DataItemIndex+1%>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="RoleGroupID" Visible="false" />
                            <asp:BoundField DataField="AllBranch" Visible="false" />
                            <asp:TemplateField SortExpression="RoleGroupName" ItemStyle-HorizontalAlign="Center"
                                HeaderText="<%$Resources:ifrsField,ROLE_GROUP_NAME%>">
                                <ItemTemplate>
                                    <asp:Label ID="lblgvROLE_GROUP_NAME" runat="server" Text='<%# Eval("RoleGroupName") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField SortExpression="AllBranch" HeaderText="<%$Resources:ifrsField,JOB%>" ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:CheckBox ID="cbgvAllBranch" runat="server" Enabled="false" />
                                </ItemTemplate>
                            </asp:TemplateField >
                            <asp:TemplateField SortExpression="IsActive" HeaderText="<%$Resources:ifrsField,STATUS%>" ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:Label ID="lblgvSTATUS" runat="server" Text='<%# Eval("IsActive") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField  ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkEdit" AlternateText="<%$Resources:ifrsMenu,Edit%>" runat="server"
                                        OnClick="lnkEditItems_Click">
                                        <asp:Image ID="imgEdit" runat="server" AlternateText="<%$Resources:ifrsMenu,Edit%>" ToolTip="<%$Resources:ifrsMenu,Edit%>"
                                            CssClass="CommandIcon" ImageUrl="~/Content/img/Edit.gif" />
                                    </asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField  ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkDelete" AlternateText="<%$Resources:ifrsMenu,Delete%>" runat="server"
                                        OnClick="lnkDeleteItems_Click">
                                        <asp:Image ID="imgDelete" runat="server" AlternateText="<%$Resources:ifrsMenu,Delete%>" ToolTip="<%$Resources:ifrsMenu,Delete%>"
                                            CssClass="CommandIcon" ImageUrl="~/Content/img/delete.gif" />
                                    </asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField  ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkView" AlternateText="<%$Resources:ifrsMenu,View%>" runat="server"
                                    OnClick="lnkViewItems_Click">
                                        <asp:Image ID="imgView" runat="server" AlternateText="<%$Resources:ifrsMenu,View%>" ToolTip="<%$Resources:ifrsMenu,View%>"
                                            CssClass="CommandIcon" ImageUrl="~/Content/img/Preview.gif" />
                                    </asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField  ItemStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkSecurable" AlternateText="<%$Resources:ifrsMenu,Securable%>"
                                        runat="server" OnClick="lnkSecurable_Click">
                                        <asp:Image ID="imgSecurable" runat="server" AlternateText="<%$Resources:ifrsMenu,Securable%>" ToolTip="<%$Resources:ifrsMenu,Securable%>"
                                            CssClass="CommandIcon" ImageUrl="~/Content/img/group_gear.png" />
                                    </asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    
                    </div>
                     <div class="content_paging">
                        <asp:Repeater ID="repPager" runat="server">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkPage" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%# Eval("Value") %>'
                                    Enabled='<%# Eval("Enabled") %>' OnClick="Page_Changed"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
